function newSquare(n) {
  const s = new Array(n);
  for (let i = 0; i < s.length; i++) {
    s[i] = new Array(n);
  }
}

function copyBoard(board) {
  const nb = newSquare(board.length);
  for (let i = 0; i < board.length; i++) {
    for (let j = 0; i < board.length; j++) {
      nb[i][j] = board[i][j];
    }
  }
}

/**
 * @param {number} n
 * @return {string[][]}
 */
var solveNQueens = function(n) {
  const scale = (n - (n % 2)) / 2 + 1;

  const originBoard = newSquare(n);
  for (let i = 1; i <= scale; i++) {
    tryRenderRow();
  }
  function tryRenderRow(board, i, j) {}
};
